a=open('D:/test.txt',mode='r',encoding='utf-8')
print(type(a))
print(a.read(10))
print('--------------------------------------')
a.seek(0)
#print(a.read())
m=a.read(10)
print(type(m))
print(m)
n=''
for i in m:
    if i.isdigit():
        continue
    n=n+i
print(n)
print('---------------------------------------')
a.seek(0)
b=a.readline()
print(b)
print(type(b))
c=a.readline(2)
print(c)
print(a.readline())
print('---------------------------------------')
a.seek(0)
c=a.readlines()
print(type(c))
print((c))
for i in c:
    print(i)
print('---------------------------------------')
a.seek(0)
m=a.read()
print(type(m))
f=0
for i in m:
    if i=='，':
        f=f+1
print(f)
print('---------------------------------------')
write = open ("d:/write.txt",mode="a+",encoding='utf-8')
write.write("test3000")
print(write.read())

